import request from '@/utils/request'

// 查询销售出库管理列表
export function listSalesOutbound(query) {
  return request({
    url: '/OutboundManagement/salesOutbound/list',
    method: 'get',
    params: query
  })
}
// export function salesOutbound(query) {
//   return request({
//     url: '/OutboundManagement/deliveryOperation/list',
//     method: 'get',
//     params: query
//   })
// }
export function salesOutbound(query) {
  return request({
    url: '/OutboundManagement/deliveryOperation/findByZhijianList',
    method: 'get',
    params: query
  })
}
// 查询销售出库管理详细
export function getSalesOutbound(outboundId) {
  return request({
    url: '/OutboundManagement/salesOutbound/' + outboundId,
    method: 'get'
  })
}

// 新增销售出库管理
export function addSalesOutbound(data) {
  return request({
    url: '/OutboundManagement/salesOutbound',
    method: 'post',
    data: data
  })
}

// 修改销售出库管理
export function updateSalesOutbound(data) {
  return request({
    url: '/OutboundManagement/salesOutbound',
    method: 'put',
    data: data
  })
}

// 删除销售出库管理
export function delSalesOutbound(outboundId) {
  return request({
    url: '/OutboundManagement/salesOutbound/' + outboundId,
    method: 'delete'
  })
}
